package com.fishery.logistics.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fishery.logistics.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.logistics.entity.vo.OrderVo;
import com.fishery.logistics.entity.vo.SearchMap;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author run
 * @since 2021-01-23
 */
public interface OrderService extends IService<Order> {

    public String createOrder(OrderVo orderVo);

    public boolean updateOrder(OrderVo orderVo);

    public boolean deleteOrder(String orderId);

    public Order searchOrderById(String orderId);

    public IPage<Order> searchOrderOfBase(String baseId, Integer page, Integer size, SearchMap searchMap);

    public List<Order> searchOrderOfBase(String baseId, SearchMap searchMap);
}
